/*
 * Please leave this Copyright notice in your code if you use it
 * Written by Decebal Mihailescu [http://www.codeproject.com/script/articles/list_articles.asp?userid=634640]
 */
using System;
using System.Collections.Generic;
using System.Text;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Windows.Forms;
using System.Runtime.InteropServices;
using System.Windows.Forms.Design;

namespace FreeTranslator
{

    //public class MyHook : IMessageFilter
    //{
    //    public bool PreFilterMessage(ref Message m)
    //    {
    //        if (m.Msg == 0x0102)//this will give you the key pressed "in your application" 
    //        {
    //            MessageBox.Show(m.WParam.ToString());
    //            return true;
    //        }
    //        return false;
    //    }
    //}
    //static class Program
    //{
    //    /// <summary> 
    //    /// The main entry point for the application. 
    //    /// </summary> 
    //    [STAThread]
    //    static void Main()
    //    {
    //        MyHook mh = new MyHook();
    //        Application.AddMessageFilter(mh);
    //        Application.EnableVisualStyles();
    //        Application.SetCompatibleTextRenderingDefault(false);
    //        Application.Run(new Form1());
    //    }
    //}

    internal enum VirtualKeys : int
    {
        VK_LBUTTON = 0x01,
        VK_RBUTTON = 0x02,
        VK_CANCEL = 0x03,
        VK_MBUTTON = 0x04,
        VK_XBUTTON1 = 0x05,
        VK_XBUTTON2 = 0x6,
        VK_BACK = 0x08,
        VK_TAB = 0x09,
        VK_RETURN = 0x0D,
        VK_SHIFT = 0x10,
        VK_CONTROL = 0x11,
        VK_ESCAPE = 0x1B,
        VK_SPACE = 0x20,
        VK_LEFT = 0x25,
        VK_UP = 0x21,
        VK_RIGHT = 0x27,
        VK_DOWN = 0x22,
        VK_DELETE = 0x2E,
        VK_F1 = 0x70,
        VK_F2 = 0x71,
        VK_F3 = 0x72,
        VK_F4 = 0x73,
        VK_F5 = 0x74,
        VK_F6 = 0x75,
        VK_F7 = 0x76,
        VK_F8 = 0x77,
        VK_F9 = 0x78,
        VK_F10 = 0x79,
        VK_F11 = 0x7A,
        VK_F12 = 0x7B,
        VK_F13 = 0x7C,
        VK_F14 = 0x7D,
    }


    [ToolStripItemDesignerAvailability(ToolStripItemDesignerAvailability.ToolStrip | ToolStripItemDesignerAvailability.StatusStrip)]
    public class ToolStripCheckedBox : ToolStripControlHost
    {

        public ToolStripCheckedBox()
            : base(new CheckBox())
        {

        }



        [DesignerSerializationVisibility(DesignerSerializationVisibility.Content)]

        public CheckBox CheckBox
        {

            get { return (CheckBox)this.Control; }

        }

    }
    struct Marker
    {
        public readonly int source;
        public readonly int destination;
        public Marker(int s, int d)
        {
            source = s;
            destination = d;
        }
    }
}
